Optimal. Leaf size=100 \[ -\frac {2 (c x)^{-3 n/2}}{3 a c n}+\frac {2 b x^n (c x)^{-3 n/2}}{a^2 c n}-\frac {2 b^{3/2} x^{3 n/2} (c x)^{-3 n/2} \tan ^{-1}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{5/2} c n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {370, 369, 352,
199, 327, 211} \begin {gather*} -\frac {2 b^{3/2} x^{3 n/2} (c x)^{-3 n/2} \text {ArcTan}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{5/2} c n}+\frac {2 b x^n (c x)^{-3 n/2}}{a^2 c n}-\frac {2 (c x)^{-3 n/2}}{3 a c n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 199
Rule 211
Rule 327
Rule 352
Rule 369
Rule 370
Rubi steps
\begin {align*} \int \frac {(c x)^{-1-\frac {3 n}{2}}}{a+b x^n} \, dx &=\frac {\left (x^{3 n/2} (c x)^{-3 n/2}\right ) \int \frac {x^{-1-\frac {3 n}{2}}}{a+b x^n} \, dx}{c}\\ &=-\frac {2 (c x)^{-3 n/2}}{3 a c n}-\frac {\left (b x^{3 n/2} (c x)^{-3 n/2}\right ) \int \frac {x^{-1-\frac {n}{2}}}{a+b x^n} \, dx}{a c}\\ &=-\frac {2 (c x)^{-3 n/2}}{3 a c n}+\frac {\left (2 b x^{3 n/2} (c x)^{-3 n/2}\right ) \text {Subst}\left (\int \frac {1}{a+\frac {b}{x^2}} \, dx,x,x^{-n/2}\right )}{a c n}\\ &=-\frac {2 (c x)^{-3 n/2}}{3 a c n}+\frac {\left (2 b x^{3 n/2} (c x)^{-3 n/2}\right ) \text {Subst}\left (\int \frac {x^2}{b+a x^2} \, dx,x,x^{-n/2}\right )}{a c n}\\ &=-\frac {2 (c x)^{-3 n/2}}{3 a c n}+\frac {2 b x^n (c x)^{-3 n/2}}{a^2 c n}-\frac {\left (2 b^2 x^{3 n/2} (c x)^{-3 n/2}\right ) \text {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,x^{-n/2}\right )}{a^2 c n}\\ &=-\frac {2 (c x)^{-3 n/2}}{3 a c n}+\frac {2 b x^n (c x)^{-3 n/2}}{a^2 c n}-\frac {2 b^{3/2} x^{3 n/2} (c x)^{-3 n/2} \tan ^{-1}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{5/2} c n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.01, size = 39, normalized size = 0.39 \begin {gather*} -\frac {2 x (c x)^{-1-\frac {3 n}{2}} \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-\frac {b x^n}{a}\right )}{3 a n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \frac {\left (c x \right )^{-1-\frac {3 n}{2}}}{a +b \,x^{n}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.45, size = 492, normalized size = 4.92 \begin {gather*} \left [\frac {3 \, b c^{-n - \frac {2}{3}} \sqrt {-\frac {b c^{-n - \frac {2}{3}}}{a}} \log \left (-\frac {2 \, a^{2} b c^{-n - \frac {2}{3}} x^{\frac {4}{3}} e^{\left (-\frac {2}{3} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {2}{3} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )} - a^{3} x^{2} e^{\left (-{\left (3 \, n + 2\right )} \log \left (c\right ) - {\left (3 \, n + 2\right )} \log \left (x\right )\right )} - 2 \, a b^{2} c^{-2 \, n - \frac {4}{3}} x^{\frac {2}{3}} e^{\left (-\frac {1}{3} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{3} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )} + b^{3} c^{-3 \, n - 2} - 2 \, {\left (a^{2} b c^{-n - \frac {2}{3}} x e^{\left (-\frac {1}{2} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )} - a^{3} x^{\frac {5}{3}} e^{\left (-\frac {5}{6} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {5}{6} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )} - a b^{2} c^{-2 \, n - \frac {4}{3}} x^{\frac {1}{3}} e^{\left (-\frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )}\right )} \sqrt {-\frac {b c^{-n - \frac {2}{3}}}{a}}}{a^{3} x^{2} e^{\left (-{\left (3 \, n + 2\right )} \log \left (c\right ) - {\left (3 \, n + 2\right )} \log \left (x\right )\right )} + b^{3} c^{-3 \, n - 2}}\right ) + 6 \, b c^{-n - \frac {2}{3}} x^{\frac {1}{3}} e^{\left (-\frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )} - 2 \, a x e^{\left (-\frac {1}{2} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )}}{3 \, a^{2} n}, \frac {2 \, {\left (3 \, b c^{-n - \frac {2}{3}} \sqrt {\frac {b c^{-n - \frac {2}{3}}}{a}} \arctan \left (\frac {\sqrt {\frac {b c^{-n - \frac {2}{3}}}{a}} e^{\left (\frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (c\right ) + \frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )}}{x^{\frac {1}{3}}}\right ) + 3 \, b c^{-n - \frac {2}{3}} x^{\frac {1}{3}} e^{\left (-\frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{6} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )} - a x e^{\left (-\frac {1}{2} \, {\left (3 \, n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (3 \, n + 2\right )} \log \left (x\right )\right )}\right )}}{3 \, a^{2} n}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.61, size = 82, normalized size = 0.82 \begin {gather*} - \frac {2 c^{- \frac {3 n}{2}} x^{- \frac {3 n}{2}}}{3 a c n} + \frac {2 b c^{- \frac {3 n}{2}} x^{- \frac {n}{2}}}{a^{2} c n} + \frac {2 b^{\frac {3}{2}} c^{- \frac {3 n}{2}} \operatorname {atan}{\left (\frac {\sqrt {b} x^{\frac {n}{2}}}{\sqrt {a}} \right )}}{a^{\frac {5}{2}} c n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (c\,x\right )}^{\frac {3\,n}{2}+1}\,\left (a+b\,x^n\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________